home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 21
/
CU Amiga Magazine's Super CD-ROM 21 (1998)(EMAP Images)(GB)[!][issue 1998-04].iso
/
CUCD
/
Programming
/
AsyncIO
/
src
/
WriteLineAsync.c
< prev
Wrap
C/C++ Source or Header
|
1997-02-18
|
368b
|
22 lines
#include "async.h"
_CALL LONG
WriteLineAsync( _REG( a0 ) AsyncFile *file, _REG( a1 ) STRPTR line )
{
/* Since SAS/C have an inlined strlen... */
#if defined( NOEXTERNALS ) && !defined( __SAS )
LONG i = 0;
STRPTR s = line;
while( *s )
{
++i, ++s;
}
return( WriteAsync( file, line, i ) );
#else
return( WriteAsync( file, line, strlen( line ) ) );
#endif
}